$(document).ready(function(){
	$('.icon_cart').click(function(){
		e.preventDefault();
	});
});

function areaLoadUrl(area, url){
	 $(area).load(url);
   
}
function removeElement(area){
	$(area).remove();
}

function replaceElementWith(area, content){
	$(area).replaceWith(content);
}
function datHang2(area, url){
	var count = $('#count-number').val();
	url = url + "/count/"+ count;
	areaLoadUrl(area, url);
	alert("Thêm thành công!");
}
function datHang1(area, url){
	areaLoadUrl(area, url);
	alert("Thêm thành công!");
}
function xoaHang(area, url){
	areaLoadUrl(area, url);
	alert("Xóa thành công!");
}

function summitForm(form, url){
	$(form).submit();
}

function summitFormTimKiem(url){
	$("#searchForm").attr("action", url);
	$("#searchForm").submit();
}
function ajaxSubmitForm(area,form,url){
	$(area).load(url,  
			  $(form).serializeArray(  ));
}